<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>对象解构</title>
</head>
<body>
    <script>
        let person = {name:'张三',age:20}
        let {name,age} = person;
        console.log(name);
        console.log(age);
    </script>
</body>
</html>